package com.wsh.consumption.controller;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * value = 提供服务方。
 */
@FeignClient(value = "sc-demo-provider",fallbackFactory = ProviderHystric.class)
public interface ProviderApi {

    @RequestMapping(value = "/info", method = RequestMethod.GET)
    public String info();
}
